package com.wanxi.test;

/**
 * 三元运算符
 */
public class TernaryOperate {
    public static void main(String[] args) {
        int a = 0;
        int b = 1;
        int c = a > b ? 10 : 20;
        boolean d = a > b;
        System.out.println(c);
        System.out.println(d);
    }
}
